<?
    include_once('../classes/class.register.owner.php');
    
    session_start();
    
    if (isset($_POST['addOwner']))
    {
        $registerOwner = new RegisterOwner();
        
        if($registerOwner->process())
        {
          echo "<script>loadOwners();</script>";
          echo "<script>alert('Propietario agregado satisfactoriamente');</script>";
        }else
        {
          echo '<p class="error">';
          echo '<b>'.$registerOwner->show_errors().'</b>'; 
          echo '</p>';   
        }
    }
?>
